home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Magnum One
/
Magnum One (Mid-American Digital) (Disc Manufacturing).iso
/
d27
/
pmfremem.arc
/
README.DOC
< prev
Wrap
Text File
|
1990-08-08
|
1KB
|
21 lines
FREEMEM.EXE is a program for OS/2 Presentation Manager V. 1.2 which
displays the amount of free memory available on the system in a small window
on the screen.
FREEMEM.EXE is taken from Charles Petzold's book "Programming the Presentation
Manager" from Microsoft Press. I have included the source, nmake, and .DEF
files. The .exe file has been compiled using Microsoft's os2.lib V. 1.2.
If you want to run it on V. 1.1, you'll have to recompile the source and link
to the older libraries - Maybe it will run okay on V. 1.1 systems,
but I doubt it.
When the code is compiled using warning level 3, a warning error is generated
due to the lack of a type cast on parameter 7 of the WinCreateStdWindow()
PM function call. It works okay regardless of the error. If you want to
avoid the error, type cast the 7th parameter to (HMODULE) as follows:
hwndFrame = WinCreateStdWindow (HWND_DESKTOP, WS_VISIBLE,
&flFrameFlags, szClientClass, NULL,
0L, (HMODULE) NULL, 0, &hwndClient ) ;
Mike Mackey 8-9-90